package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntityPlus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 用户推荐奖励对象 web_user_recommend_award
 * 
 * @author wsliupan@126.com
 * @date 2021-05-30
 */
@ApiModel("用户推荐奖励对象")
public class WebUserRecommendAward extends BaseEntityPlus
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 所属用户 */
    @Excel(name = "所属用户ID")
    @ApiModelProperty(value = "所属用户" )
    @NotNull(message = "所属用户")
    private Long userId;

    /** 被推荐用户 */
    @Excel(name = "被推荐用户ID")
    @ApiModelProperty(value = "被推荐用户" )
    @NotNull(message = "被推荐用户")
    private Long recommendUser;

    /** 奖励分 */
    @Excel(name = "金额")
    @ApiModelProperty(value = "金额" )
    @NotNull(message = "金额")
    private Long amout;

    /** 奖励分 */
    @Excel(name = "当前金额")
    @ApiModelProperty(value = "当前金额" )
    @NotNull(message = "当前金额")
    private Integer currentTotal;

    /** 1一级奖励2二级奖励 */
    @Excel(name = "奖励类型" , readConverterExp="1=一级奖励,2=二级奖励")
    @ApiModelProperty(value = "奖励类型 1=一级奖励,2=二级奖励" )
    @NotNull(message = "奖励类型")
    private Long type;

    /** 回收订单ID */
    @Excel(name = "预约订单ID")
    @ApiModelProperty(value = "预约订单ID" )
    @NotNull(message = "预约订单ID")
    private Long recycleId;

    @ApiModelProperty(value = "回收订单ID" )
    @NotNull(message = "回收订单ID")
    private Long receiveId;

    @Excel(name = "所属用户")
    @ApiModelProperty(value = "所属用户" )
    @TableField(exist = false)
    private String nickname;

    @Excel(name = "被推荐用户")
    @TableField(exist = false)
    @ApiModelProperty(value = "被推荐用户" )
    private String recommendNickname;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRecommendUser(Long recommendUser) 
    {
        this.recommendUser = recommendUser;
    }

    public Long getRecommendUser() 
    {
        return recommendUser;
    }
    public void setAmout(Long amout) 
    {
        this.amout = amout;
    }

    public Long getAmout() 
    {
        return amout;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Integer getCurrentTotal() {
        return currentTotal;
    }

    public void setCurrentTotal(Integer currentTotal) {
        this.currentTotal = currentTotal;
    }

    public Long getType()
    {
        return type;
    }

    public Long getRecycleId() {
        return recycleId;
    }

    public void setRecycleId(Long recycleId) {
        this.recycleId = recycleId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRecommendNickname() {
        return recommendNickname;
    }

    public void setRecommendNickname(String recommendNickname) {
        this.recommendNickname = recommendNickname;
    }

    public Long getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }
}
